import { Context } from 'koa';
import { readTextFile } from '../utils';
import * as path from 'path';

// 用于获取主页的控制器，根据需求增删
// GET /
export const getPage = async (ctx: Context) => {
  ctx.body = await readTextFile(path.resolve(__dirname, '..', 'public', 'index.html'));
};
